package com.vpen.picupload.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (Person)实体类
 *
 * @author vpen
 * @since 2021-08-09 23:02:50
 */
@Data
@Accessors(chain = true)
@TableName("card")
public class Person implements Serializable {
    private static final long serialVersionUID = 784539402752912900L;
    /**
    * id
    */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
    * 名字
    */
    private String personName;
    /**
    * 身份证号id
    */
    private Card card;
    /**
    * 性别
    */
    private Integer sex;
    /**
    * 创建时间
    */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime cTime;
    /**
    * 修改时间
    */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime upTime;


    private List<Hobby> hobbies;

}